package com.lijinjiang.reflect06_framework;

/**
 * @ClassName Student
 * @Description TODO
 * @Author Li
 * @Date 2022/9/20 22:34
 * @ModifyDate 2022/9/20 22:34
 * @Version 1.0
 */
public class Student {
    private String name;
    private char sex;
    private int age;
    private String classroom;
    private String hobby;

    public Student() {
    }

    public Student(String name, char sex, int age, String classroom, String hobby) {
        this.name = name;
        this.sex = sex;
        this.age = age;
        this.classroom = classroom;
        this.hobby = hobby;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getClassroom() {
        return classroom;
    }

    public void setClassroom(String classroom) {
        this.classroom = classroom;
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", sex=" + sex +
                ", age=" + age +
                ", classroom='" + classroom + '\'' +
                ", hobby='" + hobby + '\'' +
                '}';
    }
}
